package com.six.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.six.core.vo.ShopAndUserVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName sto_shop
 */
@ApiModel(description = "")
@TableName(value ="sto_shop")
@Data
public class Shop implements Serializable {
    /**
     * 
     */
    @ApiModelProperty("")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 区域id
     */
    @ApiModelProperty("区域id")
    private Integer areaid;

    /**
     * 店铺名称
     */
    @ApiModelProperty("店铺名称")
    private String name;

    /**
     * 0 营业中 1 休息中  2 停业整顿
     */
    @ApiModelProperty("0 营业中 1 休息中  2 停业整顿")
    private Integer state;

    /**
     * 地址
     */
    @ApiModelProperty("地址")
    private String address;

    /**
     * 商家id
     */
    @ApiModelProperty("商家id")
    private Integer userid;

    /**
     * 店铺介绍
     */
    @ApiModelProperty("店铺介绍")
    private String remark;

    @ApiModelProperty("停顿留言")
    private String content;
    @ApiModelProperty("商铺头像")
    private String img;


    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private TbUser user;
    @TableField(exist = false)
    private Order order;
    @TableField(exist = false)
    private Business business;
    @TableField(exist = false)
    private ShopAndUserVo shopAndUserVo;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 区域id
     */
    public Integer getAreaid() {
        return areaid;
    }

    /**
     * 区域id
     */
    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }

    /**
     * 店铺名称
     */
    public String getName() {
        return name;
    }

    /**
     * 店铺名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 0 营业中 1 休息中  2 停业整顿
     */
    public Integer getState() {
        return state;
    }

    /**
     * 0 营业中 1 休息中  2 停业整顿
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 商家id
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * 商家id
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * 店铺介绍
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 店铺介绍
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Shop other = (Shop) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAreaid() == null ? other.getAreaid() == null : this.getAreaid().equals(other.getAreaid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAreaid() == null) ? 0 : getAreaid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", areaid=").append(areaid);
        sb.append(", name=").append(name);
        sb.append(", state=").append(state);
        sb.append(", address=").append(address);
        sb.append(", userid=").append(userid);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}